<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/17
 * Time: 10:55
 */
return [
    'id'=>'customer-form',
    'template'=>'form_default',
    'enableClientValidation'=>false,
    'enableAjaxValidation'=>true,
    'options'=>['class'=>'form-validate'],
    'models' => [
        'customer' => [
            'title' => '备注',
            'th_with' => 60,
            'elements' => [
                'remarks' => [
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                        'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload','removeformat']],
                        'initialFrameWidth'=>'100%'
                    ],
                ]
            ],
        ]
    ]
];
